<script>
export default {
  name: "",
  props: {
    selectArr: {},
    selectValue: {},
  },
  data() {
    return {
      value: this.selectValue,
    };
  },
  setup() {},
  methods: {},
  mounted() {},
  created() {},
};
</script>
<template>
  <div>
    <el-select clearable v-model="value" v-bind="$attrs">
      <el-option
        v-for="item in selectArr"
        :key="item.value"
        :label="item.label"
        :value="item.value"
      >
        <span :class="item.value === value ? 'select_activeText' : ''">{{
          item.label
        }}</span>
      </el-option>
    </el-select>
  </div>
</template>
